<!DOCTYPE html>
<html>

<head>
    <title>WebRTC ScreenConnection</title>
    <style>
        .preview {
            display: flex;
        }

        .remote {
            margin-left: 20px;
        }
    </style>
</head>

<body>
    <div>
        <div>
            <button id="connserver">Connect Sig Server</button>
            <button id="leave" disabled>Leave</button>
        </div>
        <div class="preview">
            <div>
                <h2>Local:</h2>
                <video id="localvideo" autoplay playsinline></video>
            </div>
            <div class="remote">
                <h2>Remote:</h2>
                <video id="remotevideo" autoplay playsinline></video>
            </div>
        </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.3/socket.io.js"></script>
    <script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
    <script src="./screen.js"></script>
</body>

</html>